package org.september.pisces.sms.enums;

import org.september.pisces.settings.api.IPiscecSystemSettting;

/**
 * 配置枚举
 * @author yexinzhou
 * @date 2024年8月07日 上午10:52:36
 * @see
 */
public enum SmsSettingEnum implements IPiscecSystemSettting{
	
	是否开启短信预警("短信推送模块","enable_sms_warning","0","是否开启短信告警", "1/0"),
	启用短信平台名称("短信推送模块","sms_plat_name","fei_ge_sms","启用短信平台名称称", ""),
	
	飞鸽apikey("飞鸽短信设置","sms_app_key","","飞鸽apikey", ""),
	飞鸽授权码("飞鸽短信设置","sms_app_secret","","飞鸽授权码", ""),
	飞鸽签名id("飞鸽短信设置","sms_sign_id","","飞鸽签名id", ""),
	飞鸽短信模板id("飞鸽短信设置","sms_tmpl_id","","飞鸽短信模板id", ""),
	
	移动云mas账号("移动云短信设置","mobile_mas_account","","移动云mas账号", ""),
	移动云mas密码("移动云短信设置","mobile_mas_pwd","","移动云mas密码", ""),
	移动云mas签名("移动云短信设置","mobile_mas_sign","","移动云mas签名", ""),
	移动云mas企业名称("移动云短信设置","mobile_mas_ec_name","","移动云mas企业名称", ""),
	移动云mas登录接口("移动云短信设置","yunyang_mobile_mas_login_url","","移动云mas登录接口", ""),
	移动云mas发送接口("移动云短信设置","yunyang_mobile_mas_sender_url","","移动云mas发送接口", ""),
	;


    private String group;
    private String key; //状态名称
    private String value;
    private String label;
    private String remark;

    SmsSettingEnum(String group, String key, String value, String label, String remark) {
    	this.group = group;
    	this.key = key;
    	this.value = value;
    	this.label = this.name();
    	this.remark = remark;
    }


    public static SmsSettingEnum getByKey(String key) {
        for (SmsSettingEnum statusEnum : SmsSettingEnum.values()) {
            if(statusEnum.key.equals(key)) {
            	return statusEnum;
            }
        }
        return null;
    }

	public String getGroup() {
		return group;
	}

	public void setGroup(String group) {
		this.group = group;
	}

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public String getLabel() {
		return label;
	}

	public void setLabel(String label) {
		this.label = label;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}
  
}
